﻿#include "tiplist.h"
#include <QVariant>

TipList::TipList(QDialog* parent)
{
    setParent((QObject*) parent);
    box = new QComboBox();
    button = new QPushButton("Add");
    connect(button, SIGNAL(clicked()), this, SLOT(sendUpdateTipSignal()));
}

void TipList::sendUpdateTipSignal()
{
    QVariant variant;
    variant = box->itemData(0);
    emit updatedTip(key, variant.toInt());
}
